/*******************************************************************
 * 
 * @Version : 0.5 
 *
 * ChangeGridEvent.java 
 *
 * 2011-10-14 下午12:22:03
 *
 *******************************************************************/
package game.breeze.resource.event;

import java.util.List;

import game.breeze.constants.EventType;
import game.breeze.math.Position;
import game.breeze.resource.GameEvent;

/**
 * Class desc there
 * 
 * @author yangwei ywengineer@gmail.com
 * 
 */
public class ChangeGridEvent extends GameEvent {
	private int from;
	private int to;
	private List<Position> grids;

	/**
	 * 
	 */
	public ChangeGridEvent() {
		type = EventType.changeGrid;
	}

	/**
	 * @return the from
	 */
	public int getFrom() {
		return from;
	}

	/**
	 * @return the to
	 */
	public int getTo() {
		return to;
	}

	/**
	 * @return the grids
	 */
	public List<Position> getGrids() {
		return grids;
	}

	/**
	 * @param from
	 *            the from to set
	 */
	public void setFrom(int from) {
		this.from = from;
	}

	/**
	 * @param to
	 *            the to to set
	 */
	public void setTo(int to) {
		this.to = to;
	}

	/**
	 * @param grids
	 *            the grids to set
	 */
	public void setGrids(List<Position> grids) {
		this.grids = grids;
	}
}
